<!DOCTYPE html>
<html>
  <head>
    <meta charset="UTF-8" />
    <title>jQuery Fullscreen Plugin demo</title>
    <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
    <script type="text/javascript" src="../jquery-fullscreen-plugin-master/jquery.fullscreen-min.js"></script>
    <script type="text/javascript">
    
    $(function() {
    
    $(".fullscreen-supported").toggle($(document).fullScreen() != null);
    $(".fullscreen-not-supported").toggle($(document).fullScreen() == null);
    
    $(document).bind("fullscreenchange", function(e) {
       console.log("Full screen changed.");
       $("#status").text($(document).fullScreen() ? 
           "Full screen enabled" : "Full screen disabled");
    });
    
    $(document).bind("fullscreenerror", function(e) {
       console.log("Full screen error.");
       $("#status").text("Browser won't enter full screen mode for some reason.");
    });
    
    });
    
    </script>
  </head>
  <body style="background:white">
    <h1>jQuery Fullscreen Plugin demo</h1>
    <form action="../jquery-fullscreen-plugin-master/demo/test.php" id="form">
      <input type="text"></input>
      <input type="submit" />
    </form>
    <div id="buttons">
      <button onclick="$(document).fullScreen(true)">Enter Fullscreen mode (Document)</button>
      <button onclick="$('#form').fullScreen(true)">Enter Fullscreen mode
      (Form)</button>
      <button onclick="$('#buttons').fullScreen(true)">Enter Fullscreen mode (Button panel)</button><br />
      <button onclick="$(document).fullScreen(false)">Exit Fullscreen mode</button><br />
      <button onclick="$(document).toggleFullScreen()">Toggle Fullscreen mode (Document)</button><br />
      <button onclick="alert($(document).fullScreen())">Query Fullscreen mode</button>
    </div>
    <iframe src="../jquery-fullscreen-plugin-master/demo/iframe.html" width="512" height="100" webkitAllowFullScreen mozAllowFullScreen allowFullScreen>
    </iframe>
    <p class="fullscreen-supported">
      Browser supports fullscreen mode.
    </p>
    <p class="fullscreen-not-supported">
      Browser does not support fullscreen mode.    
    </p>    
    <p id="status"></p>
      
  </body>
</html>
